import Vue from "vue";

import MintUI from "mint-ui";
import "mint-ui/lib/style.css";
import "element-ui/lib/theme-chalk/index.css";
import "./styles/index.scss";

import App from "./App";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
//自定义组件
import myheader from "./components/myheader";
import ajax from "./utils/request.js";
import message from './utils/message.js'
import notify from './utils/notify.js'

Vue.config.productionTip = false

Vue.use(MintUI)
Vue.use(ElementUI);

//自定义组件
Vue.component(myheader.name, myheader)
Vue.prototype.$ajax = ajax
Vue.prototype.$basePath = process.env.BASE_API
Vue.prototype.$imessage = {warning: message.warning, success: message.success}
Vue.prototype.$inotify = {warning: notify.warning, success: notify.success}

new Vue({
    el: '#app',
    router,
    store,
    template: '<App/>',
    components: {App}
})
